package com.woniu108.valueAdded.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 优惠券表
 * </p>
 *
 * @author yanxi
 * @since 2024-05-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Ticket implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 优惠券编号
     */
    @TableId(value = "ticket_id", type = IdType.AUTO)
    private Integer ticketId;

    /**
     * 优惠券类型
     */
    private String ticketType;

    /**
     * 抵扣金额
     */
    private BigDecimal cutDownPrice;

    /**
     * 使用门槛
     */
    private BigDecimal allowUsePrice;

    /**
     * 有效时间
     */
    private Integer limitTime;

    /**
     * 使用需求vip等级
     */
    private Integer allowVipLevel;
    /**
     * 优惠券状态
     */
    private Integer ticketState;
}
